﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Tags.aspx.vb" Inherits="Macrography.Tags" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="Tagsource">
        <Columns>
            <asp:ImageField DataImageUrlField="Images" HeaderText="Image">
                <ControlStyle Height="200px" Width="200px" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="Tagsource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
        SelectCommand="SELECT DISTINCT [Images], [Tags] FROM [TagImageQuery] WHERE ([Tags] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Tags" QueryStringField="Tags" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
    </p>
</asp:Content>
